﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="ERP.UI.Controls.WPFControls.Login"
	x:Name="LoginControl" Width="336" Height="152">

	<Grid x:Name="LayoutRoot" >
		<Grid.RowDefinitions>
			<RowDefinition Height="0.105*"/>
			<RowDefinition Height="0.158*"/>
			<RowDefinition Height="0.053*"/>
			<RowDefinition Height="0.158*"/>
			<RowDefinition Height="0.052*"/>
			<RowDefinition Height="0.158*"/>
			<RowDefinition Height="0.053*"/>
			<RowDefinition Height="0.158*"/>
            <RowDefinition Height="0.105*" />
        </Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.048*"/>
			<ColumnDefinition Width="0.214*"/>
			<ColumnDefinition Width="0.048*"/>
			<ColumnDefinition Width="0.428*"/>
			<ColumnDefinition Width="0.214*"/>
			<ColumnDefinition Width="0.048*"/>
		</Grid.ColumnDefinitions>
		<Label Width="Auto" Height="Auto" Content="Username" x:Name="lblUsername"  d:LayoutOverrides="Width, Height" Grid.Column="1" Grid.Row="1" />
		<Label Width="Auto" Height="Auto" Content="Password" x:Name="lblPassword"  d:LayoutOverrides="Width, Height" Grid.Column="1" Grid.Row="3" />
		<TextBox Height="Auto" Text="" x:Name="tbUsername"  Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="1" d:LayoutOverrides="Height" />
		<PasswordBox Height="Auto" d:LayoutOverrides="HorizontalAlignment, Height" x:Name="tbPassword"  Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="3" />
		<Button Content="Login" Click="LoginButton_Click"  Grid.Column="1" Grid.Row="7" x:Name="btnLogin" />
		<Button Content="Cancel"  Grid.Column="4" Grid.Row="7" Click="CancelButton_Click" x:Name="btnCancel" />
		<Label Content="Invalid authentication! Please try agin." Style="{DynamicResource ErrorMessage}" x:Name="lblFailureMessage" Height="Auto" d:LayoutOverrides="Height" Grid.Column="1" Visibility="Hidden" Grid.ColumnSpan="6" Grid.Row="5" HorizontalAlignment="Center" />
		<Border BorderBrush="{DynamicResource BorderBrush}"  Grid.ColumnSpan="6" Grid.RowSpan="9" x:Name="brdrControlBorder" />
	</Grid>
</UserControl>